<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="DC.Type" content="task"/>
<meta name="DC.Title" content="Translating selected strings to a new language"/>
<meta name="abstract" content="Using the Localization Files Editor, you can translate selected strings from one language to one or more other languages."/>
<meta name="description" content="Using the Localization Files Editor, you can translate selected strings from one language to one or more other languages."/>
<meta name="DC.Relation" scheme="URI" content="../topics/t_localize-about.html"/>
<meta name="DC.Relation" scheme="URI" content="../topics/r_localization-translate-cells.html"/>
<meta name="copyright" content="Motorola Mobility, Inc. 2009-2010" type="primary"/>
<meta name="DC.Rights.Owner" content="Motorola Mobility, Inc. 2009-2010" type="primary"/>
<meta name="DC.Format" content="XHTML"/>
<meta name="DC.Identifier" content="t_localize-selected-string-translating"/>
<meta name="DC.Language" content="en-us"/>
<link rel="stylesheet" type="text/css" href="../commonltr.css"/>
<title>Translating selected strings to a new language</title>
</head>
<body id="t_localize-selected-string-translating"><a name="t_localize-selected-string-translating"><!-- --></a>
<a class="hdr-none"/>

  <h1 class="topictitle1">Translating selected strings to a new language</h1>

  
  
  <div><p>Using the Localization Files Editor, you can translate selected strings from one language to one or more
    other languages.</p>

    <ol>
      <li>
        <span>Launch the Localization Files Editor using one of the following methods:</span>
        <ul>
          <li>Double-click <span class="filepath">res/values/strings.xml</span> (or any of the localized <span class="filepath">strings.xml</span> files in your project).</li>

          <li>Right-click <span class="filepath">res/values/strings.xml</span> (or any of the localized <span class="filepath">strings.xml</span> files in your project) and select <span class="menucascade"><span class="uicontrol">Open
                With</span> &gt; <span class="uicontrol">Other</span></span>. From the Editor Selection dialog, select
              <span class="uicontrol">Localization Files Editor</span> and click OK.</li>

        </ul>

         The Localization Files Editor appears, showing the base (or default) strings file and any localized
          strings files.
      </li>

      <li>
        <span>If desired, hide columns to simplify the editing process. </span>
         To hide a column, right-click anywhere within the Localization Files Editor table, select <span class="uicontrol">Show
            Columns</span>, and then select the column to be hidden. (Repeat this step to show a previously hidden
          column.)
      </li>

      <li>
        <span>Select the text strings to be translated (all strings being translated must be in the same language), then
          right-click one of them and select <span class="uicontrol">Translate cell(s)</span> from the menu that appears.</span>
         The Translate Cells dialog appears.
      </li>

      <li>
        <span>Verify that the translation service you wish to use is selected in the <span class="uicontrol">Service</span>
        list.</span>
      </li>

      <li>
        <span>Verify that the language being translated from is correctly indicated. If not, select it from the list
          indicated by <span class="uicontrol">Translate from</span>.</span>
      </li>

      <li>
        <span>In the <span class="uicontrol">To</span> section of the dialog, specify the desired target languages. Note that you
          can only translate into languages for which there already exists a localization file (and therefore there is a
          corresponding column shown in the Android Localization Files Editor).</span>
         Select a target languages list and type the first character of the desired language to quickly scroll
          through the list. Your computer's up- and down-arrow keys can then be used to rapidly iterate through the
          alphabetical list of languages.
      </li>

      <li>
        <span>Click <span class="uicontrol">OK</span> to translate the strings.</span>
      </li>

      <li>
        <span>Select <span class="menucascade"><span class="uicontrol">File</span> &gt; <span class="uicontrol">Save</span></span> within the Android
          Localization Files editor to save your changes.</span>
      </li>

    </ol>

  </div>

<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/t_localize-about.html" title="Using the Localization Files Editor, you can easily create text string files for new locales, see which strings will be used in a given locale, and identify strings that have yet to be translated, all without having to work directly in XML-formatted files. It makes it easy to add new strings across multiple locales, and edit localized strings.">Localizing Text Strings</a></div>
</div>
<div class="relinfo"><strong>Related reference</strong><br/>
<div><a href="../topics/r_localization-translate-cells.html" title="Allows you to translate a selected set of text strings from one language to one or more other languages.">Translate Cells dialog</a></div>
</div>
</div>

</body>
</html>